/**
 * Created by zhong on 2018/1/24.
 */
import api from "./api.js"
import qs from "qs"

export const userApi = {
  register(data){
    return api.post("/api/user/register",qs.stringify(data))
  },
  login(data){
    return api.post("/api/user/login",qs.stringify(data))
  },
}
